var baseUrl = `http://47.108.197.28:8000`
function http(url) {
    return new Promise((resolve, reject) => {
        wx.request({
            url: baseUrl + url,
            data: {},
            method: 'GET',
            success: (res) => {
                resolve(res)
            },
            fail: (err) => {
                reject(err)
            },

        })
    })
}
function getCartHttp() {
    return http("/cart")
}
module.exports = {
    getCartHttp
}